import { Form, Root, Textarea } from 'native-base';
import React from 'react';
import { Text, View } from 'react-native';
export default function tpl(a: <T>(action: string, ...args: unknown[]) => ((...args: unknown[]) => void), s: (...class_names: string[]) => {}, d: (d: string) => string | unknown) {
	const arr0 = d('d') as { tea: { teacher_name: string }, stu: { review_num: string, review_content: string, subject_name: string, student_name: string, grade: string, class_name: string, section: number, date: number, dateing: string } };
	if (arr0) {
		if (arr0.stu.dateing) {
			return (
				<View style={{ backgroundColor: '#f4f4f4', height: '100%' }}>
					<View style={{ backgroundColor: '#ffffff', marginTop: 60 }}>
						<View style={s('view1')}>
							<Text style={s('text34')}>
								<Text>姓名：</Text>
								<Text>{arr0.stu.student_name}</Text>
							</Text>
							<Text style={s('text34')}>
								<Text>点评状态：</Text>
								<Text>已点评</Text>
							</Text>
							<Text style={s('text34')}>
								<Text>所在班级：</Text>
								<Text>{arr0.stu.grade}{arr0.stu.class_name}</Text>
							</Text>
							<Text style={s('text34')}>
								<Text>课程节次：</Text>
								<Text>{arr0.stu.subject_name}第{arr0.stu.section}节</Text>
							</Text>
							<Text style={{ marginTop: 10 }}>
								<Text style={{ color: '#333333' }}><Text style={{ color: 'red' }}>*</Text>课后点评</Text>
							</Text>
						</View>
						<View style={{ padding: 10, borderWidth: 1, borderColor: '#dddddd' }}>
							<Text>{arr0.stu.review_content}</Text>
						</View>
					</View>
				</View>
			);
		} else {
			return (
				<Root>
					<View style={{ backgroundColor: '#f4f4f4', height: '100%' }}>
						<View style={{ backgroundColor: '#ffffff', marginTop: 60 }}>
							<View style={s('view1')}>
								<Text style={s('text34')}>
									<Text>姓名：</Text>
									<Text>{arr0.stu.student_name}</Text>
								</Text>
								<Text style={s('text34')}>
									<Text>点评状态：</Text>
									<Text>未点评</Text>
								</Text>
								<Text style={s('text34')}>
									<Text>所在班级：</Text>
									<Text>{arr0.stu.grade}{arr0.stu.class_name}</Text>
								</Text>
								<Text style={s('text34')}>
									<Text>课程节次：</Text>
									<Text>{arr0.stu.subject_name}第{arr0.stu.section}节</Text>
								</Text>
								<Text style={{ marginTop: 10 }}>
									<Text style={{ color: '#333333' }}><Text style={{ color: 'red' }}>*</Text>课后点评</Text>
								</Text>
							</View>
							<View style={{ padding: 10, borderWidth: 1, borderColor: '#dddddd' }}>
								<Form>
									<Textarea rowSpan={5} placeholder="请输入点评内容" onChangeText={a('a002')} />
								</Form>
							</View>
						</View>
						<View style={{ justifyContent: 'center', alignItems: 'center', marginTop: 60 }}>
							<Text style={s('bc')} onPress={a('a003')}>保存</Text>
						</View>
					</View>
				</Root>
			);
		}
	} else {
		return (
			<View></View>
		);
	}
}
